package com.api.shopapi.service;

import com.api.shopapi.entity.NurseAide;
import com.api.shopapi.entity.User;
import com.api.shopapi.entity.dto.NurseAideDTO;
import com.api.shopapi.entity.dto.NurseDTO;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface NurseAideService {

    List<NurseAideDTO> getList(String institutionCode);

    int insert(NurseAide nurseAide);

    int updateByNurseAideCode(User user,NurseAide nurseAide);

    int deleteByNurseAideCode(String nurseAideCode);

    NurseAide getByNurseAideCode(String nurseAideCode);

    int regInsert(User user, NurseAide nurseAide);

    NurseAide getByUserCode(String userCode);


    PageInfo<NurseAideDTO> getPageList(int pageIndex, int pageSize, String institutionCode, String name, int status);


    PageInfo<NurseAideDTO> pageByGovCode(int pageIndex, int pageSize, String governmentCode);


    PageInfo<NurseAide> pageByGovCodeInsCode(int pageIndex, int pageSize, String governmentCode,String institutionCode);

    List<NurseAideDTO> listByGovCode(String governmentCode);

    List<NurseAideDTO> listByInsCode(String institutionCode);


}
